package com.wx.cloud.user.mapper;

import com.wx.cloud.user.model.Permission;
import com.wx.cloud.user.model.User;
import com.wx.cloud.user.model.UserRole;
import java.util.List;
import java.util.Map;

public interface UserMapper {

    User findUserByUserCode(String userCode);

    int saveUser(User user);

    int updateUser(User user);

    List<User> getUserList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int updateState(User user);

    List<Permission> getPermissionsByUserId(String userCode);

    List<User> getUserByUserCode(String username);

    void saveUserRole(UserRole userRole);

    int delUser(User user);

    void updateUserRole(UserRole userRole);

    UserRole getUserByUserRole(String userCode);
}
